package com.dnjn.happiness.emo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dnjn.happiness.emo.domain.EmoTeamNumberOfCommHistory;
import com.dnjn.happiness.emo.mapper.EmoTeamNumberOfCommHistoryMapper;
import com.dnjn.happiness.emo.service.IEmoTeamNumberOfCommHistoryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 团队历史沟通人数 留180天数据Service业务层处理
 *
 * @author happiness
 * @date 2023-10-28
 */
@Service
public class EmoTeamNumberOfCommHistoryServiceImpl extends ServiceImpl<EmoTeamNumberOfCommHistoryMapper, EmoTeamNumberOfCommHistory> implements IEmoTeamNumberOfCommHistoryService {

    @Override
    public void deleteNumberOfCommHistoryByDaysAgo(String delFlag) {
        baseMapper.deleteNumberOfCommHistoryByDaysAgo(delFlag);
    }

    @Override
    public List<EmoTeamNumberOfCommHistory> currenDeptHistoryCounts(String startTime, String endTime, Long deptId) {
        return baseMapper.currenDeptHistoryCounts(startTime,endTime,deptId);
    }
}
